package com.lyy.lottery.controller.result;

import com.lyy.lottery.controller.param.CreatePrizeActivityParam;
import com.lyy.lottery.controller.param.CreateUserActivityParam;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

@Data
public class CreateActivityParam implements Serializable {
    //活动名
    @NotBlank(message = "活动名称不能为空！")
    private String activityName;

    //描述
    @NotBlank(message = "活动描述不能为空！")
    private String description;

    //活动关联奖品列表
    @NotEmpty(message = "活动关联奖品不能为空！")
    @Valid
    private List<CreatePrizeActivityParam> activityPrizeList;

    //活动关联奖品列表
    @NotEmpty(message = "活动关联人员不能为空！")
    @Valid
    private List<CreateUserActivityParam> activityUserList;

}














